<?
	$nav = array("Home" => "", "Career" => "career/");

	$tpl->assign("dsfm_nav", $nav);

	$table = new Table( array(
		"id" => array(
			"width" => 20,
			"title" => "ID",
			"type" => "order",
		),

		"position" => array(
			"width" => 300,
			"type" => "text",
			"link" => 'edit.php?id=$id',
		),

		"detail" => array(
			"width" => 400,
			"type" => "text",
			"link" => 'edit.php?id=$id',
		),
	));

	$sql = "SELECT * FROM career";
	$rss = $db->query($sql);

	$data = new Data($rss);

	$table->add_data($data->fetch());

	$table->add_menu( array(
		"Add Career" => array(
			"link" => "form.php",
			"icon" => "add.png"
		)
	));

	$table->add_tool( array(
		"edit" => array(
			"link" => 'edit.php?id=$id',
			"icon" => "edit.png"
		),

		"delete" => array(
			"link" => 'delete.php?id=$id',
			"icon" => "delete.png"
		)
	));

    $table->rain_display($tpl, "table");
?>